package test.utils;

import org.apache.commons.lang.math.RandomUtils;

public class RandomTestDataUtils extends org.apache.commons.lang.RandomStringUtils {
	private static final String[] EMAIL_TOP_DOMAINS = new String[] { "com", "org", "edu", "mil", "biz" };

	public static String randomEmail(int localLength, int domainLength) {
		return randomAlphanumeric(localLength) + "@" + randomAlphabetic(domainLength) + "."
				+ EMAIL_TOP_DOMAINS[RandomUtils.nextInt(EMAIL_TOP_DOMAINS.length)];
	}
}
